﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CDB.LinqModel.Data;

namespace CDB.LinqModel
{
    public partial class City
    {
         #region Variable Declaration
        private IDataRepository _dataObject;
        #endregion

        public City(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public List<City> GetAllCities()
        {
            return _dataObject.GetAllCities();
        }
        //public List<City> GetCitiesByBuilders()
        //{
        //    return _dataObject.GetCitiesByBuilders();
        //}
        //public List<City> GetCitiesByArchitects()
        //{
            //return _dataObject.GetCitiesByArchitects();
        //}
    }
}
